package com.example.take_out_dish.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.take_out_dish.config.JwtConfig;
import com.example.take_out_dish.dto.DishDTO;
import com.example.take_out_dish.dto.SetmealDishDto;
import com.example.take_out_dish.dto.SetmealDto;
import com.example.take_out_dish.entity.Setmeal;
import com.example.take_out_dish.entity.SetmealDish;
import com.example.take_out_dish.exceptions.BusinessException;
import com.example.take_out_dish.exceptions.enumetation.ResponseEnum;
import com.example.take_out_dish.mapper.SetmealDishMapper;
import com.example.take_out_dish.service.SetmealDishService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.take_out_dish.utils.JwtUtils;
import io.jsonwebtoken.Claims;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 套餐菜品关系 服务实现类
 * </p>
 *
 * @author yyyyys
 * @since 2024-07-01
 */
@Service
public class SetmealDishServiceImpl extends ServiceImpl<SetmealDishMapper, SetmealDish> implements SetmealDishService {
    @Resource
    private SetmealDishMapper setmealDishMapper;
    @Override
    public List<SetmealDish> getDishById(int id) {
        return setmealDishMapper.getDishById(id);
    }
}
